package cn.edu.cdu.farmdeal.mapper;

import cn.edu.cdu.farmdeal.domain.Miaosha;
import cn.edu.cdu.farmdeal.domain.MiaoshaExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper

public interface MiaoshaMapper {
    /**
     * 秒杀列表
     * @return
     */
    List<Miaosha> getMiaosha();

    int countByExample(MiaoshaExample example);

    int deleteByExample(MiaoshaExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Miaosha record);

    int insertSelective(Miaosha record);

    List<Miaosha> selectByExample(MiaoshaExample example);

    Miaosha selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Miaosha record, @Param("example") MiaoshaExample example);

    int updateByExample(@Param("record") Miaosha record, @Param("example") MiaoshaExample example);

    int updateByPrimaryKeySelective(Miaosha record);

    int updateByPrimaryKey(Miaosha record);
}